/*
 * @Author: 老刘
 * @Date: 2020-04-29 15:51:38
 * @Description: echarts列表
 */
import { go } from '../../../utils/util.js';
Page({
	data: {
		canvasList: [
			{title: '饼图', ico: 'weather', url: 'pie_chart', status: ''},
			{title: '多图表(柱状图/折线图)', ico: 'weather', url: 'more_chart', status: ''}
		]
	},
	handleGo (e) {
		const url = e.currentTarget.dataset.url;
		go(`/pages/echarts/${url}/${url}`);
	},
	onClickCopyPath (e) {
		const path = e.currentTarget.dataset.url;
		wx.setClipboardData({
			data: path,
			success () {
				wx.getClipboardData({
					success (res) {
						console.log(res.data); // data 剪贴板的内容
					}
				});
			}
		});
	}
});
